﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Applications.aspx.cs" Inherits="WebSite_that_use_Wizard.NET.Applications" 
EnableSessionState="True" %>

<%@ Register src="Menu.ascx" tagname="Menu" tagprefix="uc1" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
    
        <uc1:Menu ID="Menu1" runat="server" />
        <br />
        <asp:LinkButton runat="server" id="lnkCreateNewApplication" 
            onclick="lnkCreateNewApplication_Click1">Create New Application</asp:LinkButton>
        &nbsp;&nbsp;<asp:GridView ID="GridView1" runat="server" DataSourceID="ObjectDataSource1" 
            AutoGenerateColumns="False" CellPadding="4" ForeColor="#333333" 
            GridLines="None" AllowPaging="True">
            <RowStyle BackColor="#F7F6F3" ForeColor="#333333" />
            <Columns>
                <asp:BoundField DataField="ApplicationId" HeaderText="ApplicationId" 
                    SortExpression="ApplicationId" ReadOnly="True" />
                <asp:BoundField DataField="ApplicationName" HeaderText="ApplicationName" 
                    SortExpression="ApplicationName" />
                <asp:TemplateField ShowHeader="False">
                    <ItemTemplate>
                        <asp:LinkButton ID="LinkButton1" runat="server" CausesValidation="false" 
                            CommandName="CustomCommand" CommandArgument='<%# Bind("ApplicationId") %>'  onclick="ViewApplication_Click" Text="View"></asp:LinkButton>
                        <asp:LinkButton ID="LinkButton2" runat="server" CausesValidation="false" 
                            CommandName="CustomCommand" CommandArgument='<%# Bind("ApplicationId") %>'  onclick="DeleteApplication_Click" Text="Delete"></asp:LinkButton>
                    </ItemTemplate>
                </asp:TemplateField>
                </Columns>
            <FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
            <PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center" />
            <SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
            <HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
            <EditRowStyle BackColor="#999999" />
            <AlternatingRowStyle BackColor="White" ForeColor="#284775" />
            
        </asp:GridView>
        <asp:ObjectDataSource ID="ObjectDataSource1" runat="server" 
            SelectMethod="GetApplications" 
            TypeName="WebSite_that_use_Wizard.NET.Applications+ApplicationsHelper" 
            onobjectcreated="ObjectDataSource1_ObjectCreated"  >
        </asp:ObjectDataSource>
    </div>
    </form>
</body>

</html>